package com.aipp.mall.h5.domain.entity;

import com.aipp.mall.common.anno.Note;
import com.aipp.mall.common.model.BaseAudit;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 微信订单表对象 oms_wechat_payment_history
 *
 * @author zcc
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("oms_wechat_payment_history")
public class WechatPaymentHistory extends BaseAudit implements Serializable {

    @Serial
    private static final long serialVersionUID = 2808583670328780074L;

    @Note("ID")
    private Long id;

    @Note("payment_id")
    private String paymentId;

    @Note("用户 ID")
    private Long memberId;

    @Note("OPENID")
    private String openid;

    @Note("真实姓名，提现需要")
    private String realName;

    @Note("标题|商品名称")
    private String title;

    @Note("订单号 支付时是payId 其他为orderId")
    private Long orderId;

    @Note("金额，单位分")
    private BigDecimal money;

    @Note("交易类型（1为支付  2为提现  3为退款）")
    private Integer opType;

    @Note("状态（0：未完成交易   1：完成关键交易）")
    private Integer paymentStatus;

    @Note("备注")
    private String remark;

    @Note("附加数据")
    private String attach;

    @Note("响应内容")
    private String responseBody;

}
